<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://java.sun.com/jsf/core"> 
    <ui:composition template="layout.xhtml">
        <ui:define name="body">
            <h2>Nova Pergunta - Resposta Aberta</h2>
            <h:form id="form" acceptcharset="utf-8">
                <p:growl id="msg" life="5000"/>
                <p:panel  styleClass="container_24 clearfix " style="background: none; border: none;">
                    <p class="subtitle">Pergunta</p>
                            <p:outputLabel value="Título:"  styleClass="grid_3"/>
                            <p:inputText  value="#{managerEditCategory.issues.title}"  styleClass="grid_18" />
                            <p:outputLabel value="Orientação:"  styleClass="grid_3"/>
                            <p:inputTextarea cols="120" value="#{managerEditCategory.issues.orientacion}"  styleClass="grid_18"/>
                        
                    <div class="clear"/>
                    <div class="buttonAction">
                        <p:commandButton value="Salvar" icon="ui-icon-disk" 
                                         actionListener="#{managerEditCategory.update()}" 
                                         update="@form"  styleClass="ui-priority-primary"/>
                        <p:commandButton value="Cancelar" icon="ui-icon-close"
                                         actionListener="#{managerEditCategory.redirect('editIssues.xhtml')}"
                                         immediate="true"  />
                    </div>
                </p:panel>


            </h:form>
        </ui:define>
    </ui:composition>
</html>

